package com.easy.merchants.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easy.merchants.pojo.HouseFacility;
import com.easy.merchants.pojo.HouseFacility;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface HouseFacilityMapper extends BaseMapper<HouseFacility> {

    /**
     * 查找设施数量
     *
     * @param houseFacility 房子设施
     * @return int
     */
    public int selectCounts(HouseFacility houseFacility);

    /**
     * 查找设施信息
     *
     * @param houseFacility 房子设施
     * @return boolean
     */
    public HouseFacility selectFacility(HouseFacility houseFacility);

    /**
     * 修改设施信息
     *
     * @param houseFacility 房屋设施信息
     * @return int
     */
    public int updateFacility(HouseFacility houseFacility);
}
